import Login from '../components/Login'
import Home from '../components/Home'
import User from '../components/home/User'
import Category from '../components/home/Category'
import Role from '../components/home/Role'
import Product from '../components/home/Product'
import NotFound from '../components/NotFound'
import UserDetail from '../components/home/UserDetail'
import UserInfo from '../components/home/UserInfo'
const routes=[
    {
        path:'/login',
        element:<Login/>
    },
    {
        path:'/home',
        element:<Home/>,
        children:[
            {
                path:'user',
                element:<User/>
            },
            {
                path:'role',
                element:<Role/>
            },
            {
                path:'category',
                element:<Category/>
            },
            {
                path:'product',
                element:<Product/>
            },
            {
                path:'udetail',
                element:<UserDetail/>
            },
            {
                path:'uinfo/:id',
                element:<UserInfo/>
            },
            {
                path:'*',
                element:<NotFound/>
            }
        ]
    },
    {
        path:'*',
        element:<NotFound/>
    }
]
export default routes